package decorator;

/**
 * Created by 0171093 on 2018/2/8.
 * 装饰抽象类Decorator：SuperCar这里需要持有一个真实对象的引用，也就是Car对象
 */
public class SuperCar implements ICar {
    ICar car;//持有一个真实对象的引用

    public SuperCar(ICar iCar) {
        super();
        car = iCar;
    }

    @Override
    public void move() {
        car.move();
    }
}
